package com.tvserials.service.impl;

import com.tvserials.notification.dto.Serial;
import com.tvserials.repository.SerialRepository;
import com.tvserials.service.SerialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SerialServiceImpl implements SerialService {

    @Autowired
    private SerialRepository serialRepository;

    @Override
    public void save(List<Serial> serials) {
        serialRepository.save(serials);
    }

    @Override
    public List<Serial> findAll() {
        return serialRepository.findAll();
    }


}
